3.17 \(\int x (a+b \sec ^{-1}(c x))^2 \, dx\)

Optimal. Leaf size=56 \[ -\frac {b x \sqrt {1-\frac {1}{c^2 x^2}} \left (a+b \sec ^{-1}(c x)\right )}{c}+\frac {1}{2} x^2 \left (a+b \sec ^{-1}(c x)\right )^2+\frac {b^2 \log (x)}{c^2} \]

[Out]

1/2*x^2*(a+b*arcsec(c*x))^2+b^2*ln(x)/c^2-b*x*(a+b*arcsec(c*x))*(1-1/c^2/x^2)^(1/2)/c

________________________________________________________________________________________

Rubi [A]  time = 0.07, antiderivative size = 56, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {5222, 4409, 4184, 3475} \[ -\frac {b x \sqrt {1-\frac {1}{c^2 x^2}} \left (a+b \sec ^{-1}(c x)\right )}{c}+\frac {1}{2} x^2 \left (a+b \sec ^{-1}(c x)\right )^2+\frac {b^2 \log (x)}{c^2} \]

Antiderivative was successfully verified.

[In]

Int[x*(a + b*ArcSec[c*x])^2,x]

[Out]

-((b*Sqrt[1 - 1/(c^2*x^2)]*x*(a + b*ArcSec[c*x]))/c) + (x^2*(a + b*ArcSec[c*x])^2)/2 + (b^2*Log[x])/c^2

Rule 3475

Int[tan[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[Log[RemoveContent[Cos[c + d*x], x]]/d, x] /; FreeQ[{c, d}, x]

Rule 4184

Int[csc[(e_.) + (f_.)*(x_)]^2*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> -Simp[((c + d*x)^m*Cot[e + f*x])/f, x]
+ Dist[(d*m)/f, Int[(c + d*x)^(m - 1)*Cot[e + f*x], x], x] /; FreeQ[{c, d, e, f}, x] && GtQ[m, 0]

Rule 4409

Int[((c_.) + (d_.)*(x_))^(m_.)*Sec[(a_.) + (b_.)*(x_)]^(n_.)*Tan[(a_.) + (b_.)*(x_)]^(p_.), x_Symbol] :> Simp[
((c + d*x)^m*Sec[a + b*x]^n)/(b*n), x] - Dist[(d*m)/(b*n), Int[(c + d*x)^(m - 1)*Sec[a + b*x]^n, x], x] /; Fre
eQ[{a, b, c, d, n}, x] && EqQ[p, 1] && GtQ[m, 0]

Rule 5222

Int[((a_.) + ArcSec[(c_.)*(x_)]*(b_.))^(n_)*(x_)^(m_.), x_Symbol] :> Dist[1/c^(m + 1), Subst[Int[(a + b*x)^n*S
ec[x]^(m + 1)*Tan[x], x], x, ArcSec[c*x]], x] /; FreeQ[{a, b, c}, x] && IntegerQ[n] && IntegerQ[m] && (GtQ[n,
0] || LtQ[m, -1])

Rubi steps

\begin {align*} \int x \left (a+b \sec ^{-1}(c x)\right )^2 \, dx &=\frac {\operatorname {Subst}\left (\int (a+b x)^2 \sec ^2(x) \tan (x) \, dx,x,\sec ^{-1}(c x)\right )}{c^2}\\ &=\frac {1}{2} x^2 \left (a+b \sec ^{-1}(c x)\right )^2-\frac {b \operatorname {Subst}\left (\int (a+b x) \sec ^2(x) \, dx,x,\sec ^{-1}(c x)\right )}{c^2}\\ &=-\frac {b \sqrt {1-\frac {1}{c^2 x^2}} x \left (a+b \sec ^{-1}(c x)\right )}{c}+\frac {1}{2} x^2 \left (a+b \sec ^{-1}(c x)\right )^2+\frac {b^2 \operatorname {Subst}\left (\int \tan (x) \, dx,x,\sec ^{-1}(c x)\right )}{c^2}\\ &=-\frac {b \sqrt {1-\frac {1}{c^2 x^2}} x \left (a+b \sec ^{-1}(c x)\right )}{c}+\frac {1}{2} x^2 \left (a+b \sec ^{-1}(c x)\right )^2+\frac {b^2 \log (x)}{c^2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.15, size = 90, normalized size = 1.61 \[ \frac {a c x \left (a c x-2 b \sqrt {1-\frac {1}{c^2 x^2}}\right )+2 b c x \sec ^{-1}(c x) \left (a c x-b \sqrt {1-\frac {1}{c^2 x^2}}\right )+b^2 c^2 x^2 \sec ^{-1}(c x)^2+2 b^2 \log (c x)}{2 c^2} \]

Antiderivative was successfully verified.

[In]

Integrate[x*(a + b*ArcSec[c*x])^2,x]

[Out]

(a*c*x*(-2*b*Sqrt[1 - 1/(c^2*x^2)] + a*c*x) + 2*b*c*x*(-(b*Sqrt[1 - 1/(c^2*x^2)]) + a*c*x)*ArcSec[c*x] + b^2*c
^2*x^2*ArcSec[c*x]^2 + 2*b^2*Log[c*x])/(2*c^2)

________________________________________________________________________________________

fricas [B]  time = 0.76, size = 111, normalized size = 1.98 \[ \frac {b^{2} c^{2} x^{2} \operatorname {arcsec}\left (c x\right )^{2} + a^{2} c^{2} x^{2} + 4 \, a b c^{2} \arctan \left (-c x + \sqrt {c^{2} x^{2} - 1}\right ) + 2 \, b^{2} \log \relax (x) + 2 \, {\left (a b c^{2} x^{2} - a b c^{2}\right )} \operatorname {arcsec}\left (c x\right ) - 2 \, \sqrt {c^{2} x^{2} - 1} {\left (b^{2} \operatorname {arcsec}\left (c x\right ) + a b\right )}}{2 \, c^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(a+b*arcsec(c*x))^2,x, algorithm="fricas")

[Out]

1/2*(b^2*c^2*x^2*arcsec(c*x)^2 + a^2*c^2*x^2 + 4*a*b*c^2*arctan(-c*x + sqrt(c^2*x^2 - 1)) + 2*b^2*log(x) + 2*(
a*b*c^2*x^2 - a*b*c^2)*arcsec(c*x) - 2*sqrt(c^2*x^2 - 1)*(b^2*arcsec(c*x) + a*b))/c^2

________________________________________________________________________________________

giac [B]  time = 0.48, size = 2181, normalized size = 38.95 \[ \text {result too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(a+b*arcsec(c*x))^2,x, algorithm="giac")

[Out]

1/2*(b^2*arccos(1/(c*x))^2/(c^3 + 2*c^3*(1/(c^2*x^2) - 1)/(1/(c*x) + 1)^2 + c^3*(1/(c^2*x^2) - 1)^2/(1/(c*x) +
 1)^4) + 2*a*b*arccos(1/(c*x))/(c^3 + 2*c^3*(1/(c^2*x^2) - 1)/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^3) + a^2*(1/(c^2*x^2) - 1)^2/((c^3 + 2*c^3
*(1/(c^2*x^2) - 1)/(1/(c*x) + 1)^2 + c^3*(1/(c^2*x^2) - 1)^2/(1/(c*x) + 1)^4)*(1/(c*x) + 1)^4))*c

________________________________________________________________________________________

maple [B]  time = 0.26, size = 134, normalized size = 2.39 \[ \frac {a^{2} x^{2}}{2}+\frac {x^{2} b^{2} \mathrm {arcsec}\left (c x \right )^{2}}{2}-\frac {b^{2} \mathrm {arcsec}\left (c x \right ) x \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}}{c}-\frac {b^{2} \ln \left (\frac {1}{c x}\right )}{c^{2}}+a b \,x^{2} \mathrm {arcsec}\left (c x \right )-\frac {a b x}{c \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}}+\frac {a b}{c^{3} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\, x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*(a+b*arcsec(c*x))^2,x)

[Out]

1/2*a^2*x^2+1/2*x^2*b^2*arcsec(c*x)^2-1/c*b^2*arcsec(c*x)*x*((c^2*x^2-1)/c^2/x^2)^(1/2)-1/c^2*b^2*ln(1/c/x)+a*
b*x^2*arcsec(c*x)-1/c*a*b/((c^2*x^2-1)/c^2/x^2)^(1/2)*x+1/c^3*a*b/((c^2*x^2-1)/c^2/x^2)^(1/2)/x

________________________________________________________________________________________

maxima [A]  time = 0.33, size = 87, normalized size = 1.55 \[ \frac {1}{2} \, b^{2} x^{2} \operatorname {arcsec}\left (c x\right )^{2} + \frac {1}{2} \, a^{2} x^{2} + {\left (x^{2} \operatorname {arcsec}\left (c x\right ) - \frac {x \sqrt {-\frac {1}{c^{2} x^{2}} + 1}}{c}\right )} a b - {\left (\frac {x \sqrt {-\frac {1}{c^{2} x^{2}} + 1} \operatorname {arcsec}\left (c x\right )}{c} - \frac {\log \relax (x)}{c^{2}}\right )} b^{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(a+b*arcsec(c*x))^2,x, algorithm="maxima")

[Out]

1/2*b^2*x^2*arcsec(c*x)^2 + 1/2*a^2*x^2 + (x^2*arcsec(c*x) - x*sqrt(-1/(c^2*x^2) + 1)/c)*a*b - (x*sqrt(-1/(c^2
*x^2) + 1)*arcsec(c*x)/c - log(x)/c^2)*b^2

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.02 \[ \int x\,{\left (a+b\,\mathrm {acos}\left (\frac {1}{c\,x}\right )\right )}^2 \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*(a + b*acos(1/(c*x)))^2,x)

[Out]

int(x*(a + b*acos(1/(c*x)))^2, x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int x \left (a + b \operatorname {asec}{\left (c x \right )}\right )^{2}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(a+b*asec(c*x))**2,x)

[Out]

Integral(x*(a + b*asec(c*x))**2, x)

________________________________________________________________________________________